import { Init, Provide } from '@midwayjs/decorator';
import { BaseService } from '@cool-midway/core';
import { InjectEntityModel } from '@midwayjs/typeorm';
import { Repository } from 'typeorm';
import { PaySettingAlipayEntity } from '../entity/alipay';

/**
 * paySetting模块-支付宝配置信息服务
 */
@Provide()
export class PaySettingAlipayService extends BaseService {
  @InjectEntityModel(PaySettingAlipayEntity)
  paySettingAlipayEntity: Repository<PaySettingAlipayEntity>;

  @Init()
  async init() {
    await super.init();
    this.setEntity(this.paySettingAlipayEntity);
  }
}
